from cProfile import label
from itertools import count
import jieba 
def stopwordslist(filepath):
    stopwords =[line.strip() for  line in open(filepath,'r',encoding='utf-8').readlines()]
    return stopwords
stopwords = stopwordslist('./中文停用词.txt')
with open('./唐诗三百首.txt', 'r',encoding='utf-8') as fr: txt=fr.read(); 
words = jieba.lcut(txt)